#include<bits/stdc++.h>

using namespace std;

/**
 * 字符串拷贝函数的实现 效果相当于b=a;
 * @param b
 * @param a
 */
void Strcpy(char b[], char a[]) {
    for (int i = 0; i <= strlen(a); i++) {
        b[i] = a[i];
    }
}

int main() {

    char a[100] = "apple";
    char b[100];
//b=a;
    //strcpy(b,a);
    Strcpy(b, a);
    cout << b;

}
